import {Module} from '@nestjs/common';
import {AppController} from './app.controller';
import {LoggerModule} from './logger.module';
import {CoreModule} from './core.module';
import {OuterModule} from "./outer.module";
import {DynamicConfigModule} from './dynamicModule/dynamicConfig.module'
import {AppService} from "./app.service";

@Module({
    imports: [
        LoggerModule,
        CoreModule,
        OuterModule,
        DynamicConfigModule.forRoot('apiKey:456',false)   //调用的静态方法已经返回了对象，故源码中可以直接拿到providers controllers
    ],
    providers:[
        AppService
    ],
    controllers: [
        AppController
    ]
})
export class AppModule {

}
